"""
@Project : py.flask.excel
@File    : docs_.py
@Author  : Liu Hongli
@Time    : 2024/6/4 12:09
"""
from flask_docs import ApiDoc as ApiDoc_


class ApiDoc(ApiDoc_):

    def init_app(self, app, title="API Doc", version="1.0.0", description=""):
        app.config.setdefault("API_DOC_MEMBER", list(app.blueprints.keys()))
        super(ApiDoc, self).init_app(app, title="API Doc", version="1.0.0", description="")


api_docs = ApiDoc(title='py.flask.excel', version='1.0.0', description='A simple app API')
